function route(handle,pathname,response){

    console.log('about to route a request for '+ pathname);
    if(typeof handle[pathname]==='function'){
        return(handle[pathname](response));

    }else{
        console.log('no request handle found for '+ pathname);
        return '404 not found';
    }

}

exports.route = route;